# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="sipgrep"
pkgver="2.1.0"
pkgrel=0
pkgdesc="Display and Troubleshoot SIP signaling over IP networks in console"
url="https://www.sipcapture.org/"
arch="all"
license="GPL-3.0"
makedepends="pcre-dev libpcap-dev"
options="!check" #no test provided
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/sipgrep/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	update_config_guess && update_config_sub
	default_prepare
}

build() {
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="81b7941f973f95239fe348846118031b0e6eba1f404d9568fd100fe6e4b51968fb29097f1ab3f0e079ef9e03d362e5e1e71bcafca87ed1e72941bb2df466eecd  sipgrep-2.1.0.tar.gz"
